package java1;

public class Array {
    public static void main(String [] args) {

        char [][] array = {
                {'春','眠','不','觉','晓'},
                {'处','处','闻','啼','鸟'},
                {'夜','来','风','雨','声'},
                {'花','落','知','多','少'}
        };
        int I = array.length;
        int J = array[0].length;
        char[][] array2 = new char[J][I];

        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length;j++) {
                System.out.print(array[i][j]+" ");
                array2[j][array.length-1-i] = array[i][j];
            }
            System.out.println();
        }
        System.out.println("------------------------");

        for (int m = 0; m < array2.length; m++) {
            for (int n = 0; n < array2[m].length;n++) {
                System.out.print(array2[m][n]+" ");
            }
            System.out.println();
        }

    }
}
